package main

import (
	"fmt"
	"log"
	"time"
)

func main() {
	log.Println("ServiceA starting.")
	for i := 0; i < 5; i++ {
		fmt.Printf("ServiceA: Heartbeat %d\n", i+1)
		time.Sleep(1 * time.Second)
	}
	log.Println("ServiceA finished.")
}
